var config = {
  log_date_format: "YYYY-MM-DD HH:mm Z",
  env_production: {
    NODE_ENV: 'production'
  }
};

module.exports = {
  /**
   * Application configuration section
   * http://pm2.keymetrics.io/docs/usage/application-declaration/
   */
  apps: [
    /**
     * 项目启动配置
     */
    Object.assign({
      name: 'server-viewdata',
      script: './src/app.js',
      instances: '1',
      max_memory_restart : '1024M'
    }, config),
  ],
};
